<?php
session_start();

require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/config/config.php');


$nip = $_SESSION['NIP'];
$query=mysql_query("SELECT ID_DEPARTEMEN FROM biodata where NIP =".$nip);
$row = mysql_fetch_row($query);
$id = $row[0];


//baca tabel pendidikan
$query1=mysql_query("SELECT t.ID_TRAINING_WAJIB as ID_TRAINING_WAJIB, t.NAMA_TRAINING_WAJIB as TRAINING_WAJIB, d.NAMA_DEPARTEMEN as DEPARTEMEN FROM training_wajib as t, departemen as d where d.ID_DEPARTEMEN =  t.ID_DEPARTEMEN and t.ID_DEPARTEMEN =".$id);


?>